﻿@model Senac.Escola.Projeto.Models.Pergunta
@{
    ViewBag.Title = "CreatePergunta";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{   
    @Html.HiddenFor(model => model.PerguntaID)
    @Html.ValidationSummary(true)
    
    <fieldset>
        <legend>@ViewBag.AtividadeNome</legend>
        
        <div class="row">
            <div class="span4">
                <span class="add-on">Pergunta</span>
                @Html.EditorFor(model => model.DescricaoPergunta, new { @id = "prependedInput", @class = "span2 input-xxlarge" })
                @Html.ValidationMessageFor(model => model.DescricaoPergunta)
            </div>
            <div class="span4">
                @Html.DropDownList("AtividadeID", String.Empty)
            </div>
            <div class="span4">
                @Html.Label("Pergunta Ativa ?")
                @Html.CheckBoxFor(model => model.Ativo)
                @Html.ValidationMessageFor(model => model.Ativo)
            </div>
        </div>
    </fieldset> 
    
        <div class="row span8">
            <div class="span2">
                <input type="submit" value="Salvar Pergunta" class="btn btn-primary row-fluid" />
            </div>
        </div>
    <div class"row">
        <div class="span12">
            <ul class="pager">
                <li><a href="@Url.Content("~/Atividade/Index/")">Finalizar </a></li>
            </ul>
        </div>
    </div> 

}